<template>
  <div>
    <Header />
    <router-view></router-view>
    <Footer v-show="!$route.meta.isShow" />
  </div>
</template>

<script>
import { mapActions } from "vuex";
import Header from "@comp/Header";
import Footer from "@comp/Footer";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  methods: {
    ...mapActions("home", ["getCategory"]),
  },
  mounted() {
    //初始化请求数据
    this.getCategory();
  },
};
</script>

<style>
</style>